3.169 \(\int \csc ^4(a+b x) \sec ^4(a+b x) \, dx\)

Optimal. Leaf size=53 \[ \frac {\tan ^3(a+b x)}{3 b}+\frac {3 \tan (a+b x)}{b}-\frac {\cot ^3(a+b x)}{3 b}-\frac {3 \cot (a+b x)}{b} \]

[Out]

-3*cot(b*x+a)/b-1/3*cot(b*x+a)^3/b+3*tan(b*x+a)/b+1/3*tan(b*x+a)^3/b

________________________________________________________________________________________

Rubi [A]  time = 0.04, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2620, 270} \[ \frac {\tan ^3(a+b x)}{3 b}+\frac {3 \tan (a+b x)}{b}-\frac {\cot ^3(a+b x)}{3 b}-\frac {3 \cot (a+b x)}{b} \]

Antiderivative was successfully verified.

[In]

Int[Csc[a + b*x]^4*Sec[a + b*x]^4,x]

[Out]

(-3*Cot[a + b*x])/b - Cot[a + b*x]^3/(3*b) + (3*Tan[a + b*x])/b + Tan[a + b*x]^3/(3*b)

Rule 270

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*(a + b*x^n)^p,
 x], x] /; FreeQ[{a, b, c, m, n}, x] && IGtQ[p, 0]

Rule 2620

Int[csc[(e_.) + (f_.)*(x_)]^(m_.)*sec[(e_.) + (f_.)*(x_)]^(n_.), x_Symbol] :> Dist[1/f, Subst[Int[(1 + x^2)^((
m + n)/2 - 1)/x^m, x], x, Tan[e + f*x]], x] /; FreeQ[{e, f}, x] && IntegersQ[m, n, (m + n)/2]

Rubi steps

\begin {align*} \int \csc ^4(a+b x) \sec ^4(a+b x) \, dx &=\frac {\operatorname {Subst}\left (\int \frac {\left (1+x^2\right )^3}{x^4} \, dx,x,\tan (a+b x)\right )}{b}\\ &=\frac {\operatorname {Subst}\left (\int \left (3+\frac {1}{x^4}+\frac {3}{x^2}+x^2\right ) \, dx,x,\tan (a+b x)\right )}{b}\\ &=-\frac {3 \cot (a+b x)}{b}-\frac {\cot ^3(a+b x)}{3 b}+\frac {3 \tan (a+b x)}{b}+\frac {\tan ^3(a+b x)}{3 b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 43, normalized size = 0.81 \[ 16 \left (-\frac {\cot (2 (a+b x))}{3 b}-\frac {\cot (2 (a+b x)) \csc ^2(2 (a+b x))}{6 b}\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Csc[a + b*x]^4*Sec[a + b*x]^4,x]

[Out]

16*(-1/3*Cot[2*(a + b*x)]/b - (Cot[2*(a + b*x)]*Csc[2*(a + b*x)]^2)/(6*b))

________________________________________________________________________________________

fricas [A]  time = 0.50, size = 66, normalized size = 1.25 \[ -\frac {16 \, \cos \left (b x + a\right )^{6} - 24 \, \cos \left (b x + a\right )^{4} + 6 \, \cos \left (b x + a\right )^{2} + 1}{3 \, {\left (b \cos \left (b x + a\right )^{5} - b \cos \left (b x + a\right )^{3}\right )} \sin \left (b x + a\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(b*x+a)^4/sin(b*x+a)^4,x, algorithm="fricas")

[Out]

-1/3*(16*cos(b*x + a)^6 - 24*cos(b*x + a)^4 + 6*cos(b*x + a)^2 + 1)/((b*cos(b*x + a)^5 - b*cos(b*x + a)^3)*sin
(b*x + a))

________________________________________________________________________________________

giac [A]  time = 0.26, size = 31, normalized size = 0.58 \[ -\frac {8 \, {\left (3 \, \tan \left (2 \, b x + 2 \, a\right )^{2} + 1\right )}}{3 \, b \tan \left (2 \, b x + 2 \, a\right )^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(b*x+a)^4/sin(b*x+a)^4,x, algorithm="giac")

[Out]

-8/3*(3*tan(2*b*x + 2*a)^2 + 1)/(b*tan(2*b*x + 2*a)^3)

________________________________________________________________________________________

maple [A]  time = 0.05, size = 68, normalized size = 1.28 \[ \frac {\frac {1}{3 \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )^{3}}-\frac {2}{3 \sin \left (b x +a \right )^{3} \cos \left (b x +a \right )}+\frac {8}{3 \sin \left (b x +a \right ) \cos \left (b x +a \right )}-\frac {16 \cot \left (b x +a \right )}{3}}{b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sec(b*x+a)^4/sin(b*x+a)^4,x)

[Out]

1/b*(1/3/sin(b*x+a)^3/cos(b*x+a)^3-2/3/sin(b*x+a)^3/cos(b*x+a)+8/3/sin(b*x+a)/cos(b*x+a)-16/3*cot(b*x+a))

________________________________________________________________________________________

maxima [A]  time = 0.32, size = 44, normalized size = 0.83 \[ \frac {\tan \left (b x + a\right )^{3} - \frac {9 \, \tan \left (b x + a\right )^{2} + 1}{\tan \left (b x + a\right )^{3}} + 9 \, \tan \left (b x + a\right )}{3 \, b} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(b*x+a)^4/sin(b*x+a)^4,x, algorithm="maxima")

[Out]

1/3*(tan(b*x + a)^3 - (9*tan(b*x + a)^2 + 1)/tan(b*x + a)^3 + 9*tan(b*x + a))/b

________________________________________________________________________________________

mupad [B]  time = 0.46, size = 45, normalized size = 0.85 \[ -\frac {-{\mathrm {tan}\left (a+b\,x\right )}^6-9\,{\mathrm {tan}\left (a+b\,x\right )}^4+9\,{\mathrm {tan}\left (a+b\,x\right )}^2+1}{3\,b\,{\mathrm {tan}\left (a+b\,x\right )}^3} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(cos(a + b*x)^4*sin(a + b*x)^4),x)

[Out]

-(9*tan(a + b*x)^2 - 9*tan(a + b*x)^4 - tan(a + b*x)^6 + 1)/(3*b*tan(a + b*x)^3)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec ^{4}{\left (a + b x \right )}}{\sin ^{4}{\left (a + b x \right )}}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sec(b*x+a)**4/sin(b*x+a)**4,x)

[Out]

Integral(sec(a + b*x)**4/sin(a + b*x)**4, x)

________________________________________________________________________________________